import java.util.Scanner;

//一商场普通顾客购物满100元打9折；会员购物打8折；会员购物满200元打7.5折
//实现思路：
//1、外层判断是否是会员
//2、内层判断是否达到相应打折要求
public class homework22 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double price = sc.nextDouble();
        boolean isMember = sc.nextBoolean();
        if (isMember) {
            if (price >= 200) {
                price *= 0.75;
            } else {
                price *= 0.8;
            }
        } else {
            if (price >= 100) {
                price *= 0.9;
            }
        }
        System.out.println("打折后价格：" + price);
    }
}
